package org.loofer.ext.component.logger;

import org.loofer.ext.utils.Singleton;

public class DebugLogger implements ILog {
    private static Singleton<DebugLogger, Void> sSingleton = new Singleton<DebugLogger, Void>() {
        protected DebugLogger create(Void aVoid) {
            return new DebugLogger();
        }
    };

    private DebugLogger() {
    }

    public static DebugLogger getInstance() {
        return (DebugLogger) sSingleton.get(null);
    }

    public void v(String tag, String text) {
        Log.v(tag, text);
    }

    public void v(String text) {
        Log.v("Logger", text);
    }

    public void d(String tag, String text) {
        Log.d(tag, text);
    }

    public void d(String text) {
        Log.d("Logger", text);
    }

    public void i(String tag, String text) {
        Log.i(tag, text);
        Log4j.i(tag, text);
    }

    public void i(String text) {
        Log.i("Logger", text);
        Log4j.i(text);
    }

    public void w(String tag, String text) {
        Log.w(tag, text);
        Log4j.w(tag, text);
    }

    public void w(String text) {
        Log.w("Logger", text);
        Log4j.w(text);
    }

    public void e(String tag, String text) {
        Log.e(tag, text);
        Log4j.e(tag, text);
    }

    public void e(Exception e) {
        Log.e("Logger", e);
        Log4j.e(e);
    }

    public void e(String text) {
        Log.e("Logger", text);
        Log4j.e(text);
    }
}
